<%@ page language="java" pageEncoding="UTF-8"%>
<table width="155" border="0" cellpadding="0" cellspacing="0">

	<tr>
		<td height="52" background="<%=basePath%>images/rcbj.gif"
			class="lanbcolor">
			<c:out value="${requestScope.leftTitle}" />
		</td>
	</tr>


	<tr>
		<td align="center" valign="middle" onclick="selLeft('152')">

			 
				 
				<c:forEach items="${applicationScope.categorys}" var="cate_1">
					<c:if test="${cate_1.pid eq requestScope.m1.id}">
						<table width="94%" border="0" cellpadding="0" cellspacing="0"
							id="ab152">
							<tr>
								<td width="90%" height="33"
									style="border-bottom: 1px solid #ccc;" onclick="selLeft('152')">
									<a style="float: left; FONT-SIZE: 12px; padding-left:10px;"
										id="leftmenu_204" ref='leftmenu'
										href="<%=basePath%>webs/category.do?m1=${requestScope.m1.id}&m2=${cate_1.id}"
										class="lanbcolor">${cate_1.name}</a>
								</td>
 								
								<td width="9%" align="left" class="selrc"
									style="border-bottom: 1px solid #ccc;">
								    <c:set value="a" var="oneString"/>
									<c:forEach items="${applicationScope.categorys}" var="item"    >
									<c:if test="${item.pid eq cate_1.id}">
									       <c:set value="b" var="oneString"/>
									</c:if>
									</c:forEach> 
									<c:if test="${oneString eq 'b'}">
									<% out.print("<img src='"+basePath+"images/rcj.gif' width='14' height='14' border='0' align='absmiddle' /> "); %>  
									</c:if>
								  </td>


							</tr>

						</table>
                        <c:if test="${requestScope.m2!=null&&requestScope.m2.id==cate_1.id}"> 
                        	
						<c:forEach items="${applicationScope.categorys}" var="cate_2">
							<c:if test="${cate_2.pid eq cate_1.id}">
							   
								<table width="94%" border="0" cellpadding="0" cellspacing="0" id="ab152">
									<tr>
										<td width="90%" height="33"
											style="border-bottom: 1px solid #ccc;"
											onclick="selLeft('152')">  
											<a style="float: left; FONT-SIZE: 12px; padding-left: 30px;"
												id="leftmenu_204" ref='leftmenu'
												href="<%=basePath%>webs/category.do?m1=${requestScope.m1.id}&m2=${cate_1.id}&m3=${cate_2.id}"
												class="lanbcolor">${cate_2.name}</a>
										</td>

										<td width="9%" align="left" class="selrc"
											style="border-bottom: 1px solid #ccc;">
										    <c:set value="a" var="oneString"/>
									<c:forEach items="${applicationScope.categorys}" var="item"    >
									<c:if test="${item.pid eq cate_2.id}">
									       <c:set value="b" var="oneString"/>
									</c:if>
									</c:forEach> 
									<c:if test="${oneString eq 'b'}">
									<% out.print("<img src='"+basePath+"images/rcj.gif' width='14' height='14' border='0' align='absmiddle' /> "); %>  
									</c:if>	
									 </td>
 									</tr>

								</table>
								
								 <c:if test="${requestScope.m3!=null&&requestScope.m3.id==cate_2.id}">    
								<c:forEach items="${applicationScope.categorys}" var="cate_3">
									<c:if test="${cate_3.pid eq cate_2.id}">

										<table width="94%" border="0" cellpadding="0" cellspacing="0"
											id="ab152">
											<tr>
												<td width="90%" height="33"
													style="border-bottom: 1px solid #ccc;"
													onclick="selLeft('152')">
													<a
														style="float: left; FONT-SIZE: 12px; padding-left: 50px;"
														id="leftmenu_204" ref='leftmenu'
														href="<%=basePath%>webs/category.do?m1=${requestScope.m1.id}&m2=${cate_1.id}&m3=${cate_2.id}&m4=${cate_3.id}"
														class="lanbcolor">${cate_3.name}</a>
												</td>
 												<td width="9%" align="left" class="selrc"
													style="border-bottom: 1px solid #ccc;"></td>
 												</tr>
 										</table>
 									</c:if>
								</c:forEach> 
								</c:if>
						      </c:if>	
						  </c:forEach>
                        </c:if>
 					</c:if>
				</c:forEach>
  
</td> 
</tr> 
</table>
<script type="text/javascript">
function overleft(v,o){
if(o=='s'){
 $("#ab"+v).css({"display":"block"});
 }else{
  $("#ab"+v).css({"display":"none"});
 }
}

var oleftmenu=$("[ref='leftmenu']");
var onums=oleftmenu.length;
for(var t=0;t<onums;t++){
	oleftmenu.eq(t).css({"font-weight":"normal"});
}
function selLeft(v){
            var url="session.jsp?clid="+v;
		    $.get(url).success(function(response){
			}).error(function () { });	
		    setTimeout("",1000);
}
</script>